import pandas as pd
import csv

df = pd.read_csv('D:\py\pythonProject\population-data\data\originalData\分省自然增长率年度数据.csv', skiprows=3,encoding="gbk")

print(df.head())

df=df.iloc[:-1]

print(df.head())



output_file_path = r'D:\py\pythonProject\population-data\data\temp\分省增长率数据.csv'
df.to_csv(output_file_path, encoding="gbk")